package wqh.service.impl;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import wqh.dao.DtMonitorDao;
import wqh.domain.DtMonitor;
import wqh.pojo.SelectMonitorCondition;
import wqh.service.DtMonitorService;

import java.util.List;
/**
 * Created by cfs on 2016/12/26.
 */
@Service("dtMonitorService")
public class DtMonitorServicelmpl  implements DtMonitorService{
    @Autowired
    private DtMonitorDao dtMonitorDao;

    public Integer selectCount(){
        return dtMonitorDao.selectCount();
    }

    public List<DtMonitor> findAllRecord(){
        return dtMonitorDao.findAllRecord();
    }

    public DtMonitor findByID(Integer id){
        return this.dtMonitorDao.findByID(id);
    }

    public List<DtMonitor> findByGeoID(Integer geo_id){
        return this.dtMonitorDao.findByGeoID(geo_id);
    }

    public DtMonitor findByIPAndMarkID(SelectMonitorCondition selectMonitorCondition){
        return this.dtMonitorDao.findByIPAndMarkID(selectMonitorCondition);
    }

    public int insertRecord(DtMonitor dtMonitor){
        return this.dtMonitorDao.insertRecord(dtMonitor);
    }
    public int updateRecord(DtMonitor dtMonitor){
        return this.dtMonitorDao.updateRecord(dtMonitor);
    }
    public int deleteById(Integer id){
        return this.dtMonitorDao.deleteById(id);
    }
}
